//package zhongbo.java.air.flightpath.web.controller;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import zhongbo.java.air.common.vo.PageVo;
//import zhongbo.java.air.common.vo.ResultVo;
//import zhongbo.java.air.flightpath.model.FlightPath;
//import zhongbo.java.air.flightpath.model.FlightPathl;
//import zhongbo.java.air.flightpath.service.IFlightPathService;
//
//@RestController
//@RequestMapping("flightPath")
//@Api(tags = "航迹数据接口")
//public class FlightPathController1 {
//    @Autowired
//    private IFlightPathService iFlightPathService;
//
//    @PostMapping("addPath")
//    @ApiOperation("获取添加轨迹列表")
//    public ResultVo<FlightPath> add(@RequestBody FlightPath airCraft) {
//        FlightPath add = iFlightPathService.add(airCraft);
//        if (add != null) {
//            return ResultVo.ok(add);
//        }
//        return ResultVo.failed();
//    }
//
//    @PostMapping("deletePath")
//    @ApiOperation("获取删除轨迹列表")
//    public ResultVo<String> delete(@RequestBody String id) {
//        String delete = iFlightPathService.delete(id);
//        if (delete != null) {
//            return ResultVo.ok(delete);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("editPath")
//    @ApiOperation("获取修改轨迹列表")
//    public ResultVo<FlightPath> edit(@RequestBody  FlightPath edit) {
//        FlightPath editN = iFlightPathService.edit(edit);
//        if (editN != null) {
//            return ResultVo.ok(edit);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("selectPath")
//    @ApiOperation("获取查询轨迹列表")
//    public ResultVo<FlightPath> select(@RequestBody String icaoCode) {
//        FlightPath select = iFlightPathService.findFlightPath(icaoCode);
//        if (select != null) {
//            return ResultVo.ok(select);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("selectPagePath")
//    @ApiOperation("获取分页查询轨迹列表")
//    public ResultVo<PageVo<FlightPathl>> select(@RequestBody Integer page, Integer pageSize
//            , String icao, String startTime, String endTime
//            , String keyword, String fields
//            , String oderByField, Boolean orderByAsc) {
//        PageVo<FlightPathl> select = iFlightPathService.pageVo(page, pageSize
//                , icao, startTime, endTime
//                , keyword, fields, oderByField, orderByAsc);
//        if (select != null) {
//            return ResultVo.ok(select);
//        }
//        return ResultVo.failed();
//    }
//
//}
